﻿using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using Budjelar.Model.Entities;

namespace Budjelar.Repository.EF.Configuration
{
    public class ArtikalConfiguration : EntityTypeConfiguration<Artikal>
    {
        public ArtikalConfiguration()
        {
            ToTable("Artikli");
            Property(x => x.Naziv).HasMaxLength(100).IsRequired();
            //HasMany(x => x.VrsteArtikla).WithMany(x => x.Artikli).Map(x => x.ToTable("VrsteArtikala_Artikli"));
        }
    }
}